package com.easyweb.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.NamedQueries;
import org.hibernate.annotations.NamedQuery;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

@Entity
@NamedQueries( {					
	@NamedQuery(name = "fakulteTumKayitlar", query = "select f from FakulteTanimlari f   order by f.adi")
})
@Table
public class FakulteTanimlari {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column( unique = true, nullable = false) 
	private Long Id;
	
	@Column(nullable=false,length=100)
	@NotNull(message="#{messages.errBosOlamaz}")
	@Length(max=100,message="#{messages.errUzunlukYuzGecemez}")
	private String adi;

	public FakulteTanimlari() {
		// TODO Auto-generated constructor stub
	}
	public FakulteTanimlari(Long id, String adi) {
		super();
		Id = id;
		this.adi = adi;
	}

	public Long getId() {
		return Id;
	}

	public String getAdi() {
		return adi;
	}

	public void setId(Long id) {
		Id = id;
	}

	public void setAdi(String adi) {
		this.adi = adi;
	}
	
	
	
	

}
